package model

import "time"

// ProjectTimeline 项目时间线
type ProjectTimeline struct {
	ID        uint64    `gorm:"primaryKey"`
	ProjectID uint64    `gorm:"not null;index"`
	Type      int8      `gorm:"type:tinyint;not null;comment:'类型 1:开始 2:更新 3:结束'"`
	Content   string    `gorm:"type:text;not null"`
	CreatedAt time.Time `gorm:"autoCreateTime"`

	Project Project `gorm:"foreignKey:ProjectID"`
}
